<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>删除银行卡</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
    <style>
    body { display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; background: #f7fafd; }
    .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 260px; background: linear-gradient(180deg, #1a355b 80%, #1976d2 100%); border-radius: 0 18px 18px 0; box-shadow: 2px 0 8px #e3eaf2; padding: 32px 0; margin: 0; display: flex; flex-direction: column; gap: 0; z-index: 100; }
    .sidebar-title { font-size: 26px; font-weight: bold; color: #fff; letter-spacing: 2px; padding: 0 32px 18px 32px; margin-bottom: 10px; border-bottom: 2px solid #fff2; display: flex; align-items: center; gap: 12px; }
    .sidebar ul { list-style: none; padding: 0; margin: 0; }
    .sidebar li { margin: 0 0 8px 0; }
    .sidebar a, .sidebar .sidebar-btn { display: flex; align-items: center; gap: 12px; font-size: 18px; padding: 14px 32px; border-radius: 16px; background: transparent; color: #fff; border: none; transition: 0.2s; text-decoration: none; text-align: left; cursor: pointer; }
    .sidebar a:hover, .sidebar .sidebar-btn:hover, .sidebar .active { background: #fff; color: #1976d2; font-weight: bold; }
    .sidebar .logout { margin-top: 32px; background: #e3eaf2; color: #1976d2; }
    .sidebar .logout:hover { background: #1976d2; color: #fff; }
    .main-content { margin-left: 260px; flex: 1; display: flex; flex-direction: column; align-items: center; background: #f7fafd; min-width: 350px; max-width: 800px; }
    .card { background: #fff; border-radius: 18px; box-shadow: 0 2px 16px #d0e2f7; padding: 40px 56px 36px 56px; margin: 48px 0 0 0; width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; }
    .card h2 { color: #e53935; font-size: 28px; font-weight: bold; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
    .tip { color: #1976d2; background: #e3eaf2; border-radius: 8px; font-size: 16px; margin: 0 0 24px 0; padding: 10px 18px; text-align: center; font-weight: 500; display: flex; align-items: center; gap: 8px; }
    .cute-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
    .cute-form input { width: 90%; padding: 12px 16px; margin: 0; border: 1.5px solid #b0bec5; border-radius: 10px; font-size: 16px; transition: border 0.2s; }
    .cute-form input:focus { border: 1.5px solid #1976d2; outline: none; }
    .cute-form button { border-radius: 12px; font-size: 18px; background: #1976d2; color: #fff; padding: 12px 0; width: 90%; border: none; margin-top: 0; font-weight: bold; box-shadow: 0 1px 4px #e3eaf2; transition: background 0.2s; }
    .cute-form button:hover { background: #145ea8; }
    .back-btn { margin-top: 18px; border-radius: 10px; font-size: 18px; background: #e3eaf2; color: #1976d2; padding: 12px 0; width: 90%; border: none; font-weight: bold; box-shadow: 0 1px 4px #e3eaf2; transition: background 0.2s, color 0.2s; }
    .back-btn:hover { background: #1976d2; color: #fff; }
    .flash { width: 90%; margin: 0 auto 10px auto; padding: 10px; border-radius: 8px; font-size: 15px; text-align: center; }
    .flash.success { background: #e3f6ed; color: #388e3c; }
    .flash.error { background: #ffebee; color: #e53935; }
    </style>
</head>
<body>
    <div class="sidebar">
        <div class="sidebar-title"><i class="fa-solid fa-credit-card"></i> 银行卡管理</div>
        <ul>
            <li><a class="sidebar-btn" href="/bankcard_add"><i class="fa-solid fa-plus"></i> 添加银行卡</a></li>
            <li><a class="sidebar-btn" href="/bankcard_list"><i class="fa-solid fa-list"></i> 银行卡列表</a></li>
            <li><a class="sidebar-btn" href="/bankcard_update"><i class="fa-solid fa-pen-to-square"></i> 修改银行卡信息</a></li>
            <li><a class="sidebar-btn" href="/bankcard_export"><i class="fa-solid fa-download"></i> 导出银行卡数据</a></li>
            <li><a class="sidebar-btn" href="/bankcard_query"><i class="fa-solid fa-search"></i> 银行卡查询</a></li>
            <li><a class="sidebar-btn active" href="/bankcard_delete"><i class="fa-solid fa-trash"></i> 删除银行卡</a></li>
        </ul>
        <a href="/admin_menu" class="sidebar-btn logout"><i class="fa-solid fa-arrow-left"></i> 返回管理员菜单</a>
    </div>
    <div class="main-content">
        <div class="card">
            <h2><i class="fa-solid fa-xmark"></i> 删除银行卡</h2>
            <div class="tip"><i class="fa-solid fa-circle-info"></i> 请输入要删除的银行卡号，操作需谨慎 <span style="font-size:20px;">⚠️</span></div>
            {% with messages = get_flashed_messages(with_categories=true) %}
              {% if messages %}
                {% for category, message in messages %}
                  <div class="flash {{ category }}">{{ message }}</div>
                {% endfor %}
              {% endif %}
            {% endwith %}
            <form method="post" class="cute-form">
                <input type="text" name="cardID" placeholder="银行卡号" required>
                <button type="submit"><i class="fa-solid fa-trash"></i> 删除银行卡</button>
            </form>
            <button class="back-btn" onclick="location.href='/bankcard_manage'"><i class="fa-solid fa-arrow-left"></i> 返回银行卡管理</button>
        </div>
    </div>
</body>
</html> 